import request from "@/utils/request.js";

// 获取商品列表
export const getProductList = (params) => {
  return request.get("/products", { params });
};

// 获取商品详情
export const getProductDetail = (id) => {
  return request.get(`/products/${id}`);
};
